Learn R Programming

DDPM (version 0.1.0)

Hospital stays: The data show the frequency distribution of length of hospital stay

Description

The function gives the frequency distribution of the length of hospital stay.

Usage

data_stays

Value

data_stays gives the observed frequencies of the number of hospital stays by United States residents aged 66 and over.

Arguments

data_stays

A vector of (non-negative integer) count values.

Author

Muhammad Imran

R implementation and documentation: Muhammad Imran imranshakoor84@yahoo.com.

Details

The data set consists of the number of hospital stays by United States residents aged 66 and over. Recently, it was used by Aryuyuen et al. (2014) and fitted by the zero-inflated negative binomial-generalized exponential distribution.

References

Aryuyuen, S., Bodhisuwan, W., & Supapakorn, T. (2014). Zero-inflated negative binomial-generalized exponential distribution and its applications. Songklanakarin Journal of Science and Technology, 36(4), 483-91.

Flynn, M., & Francis, L. A. (2009). More flexible GLMs zero-inflated models and hybrid models. Casualty Actuarial Society, 2009, 148-224.

Examples

Run this code
x<-data_stays
summary(x)
table (x)

Run the code above in your browser using DataLab